#include "Light.h"

Light::Light(void)
{
	position = D3DXVECTOR3(0.0f, 0.0f, 0.0f);
	color = D3DXVECTOR3(1.0f, 1.0f, 1.0f);
	intensity = 1.0f;
}

Light::~Light(void)
{
}

void Light::setPosition(const FLOAT x, const FLOAT y, const FLOAT z)
{
	position = D3DXVECTOR3(x, y, z);
}

void Light::setColor(const FLOAT x, const FLOAT y, const FLOAT z)
{
	color = D3DXVECTOR3(x, y, z);
}

void Light::setIntensity(const FLOAT in)
{
	intensity = in;
}

const D3DXVECTOR4 Light::getColor() const
{
	return D3DXVECTOR4(color);
}

const FLOAT Light::getIntensity() const
{
	return intensity;
}

const D3DXVECTOR3 Light::getPosition3() const
{
	return position;
}

const D3DXVECTOR4 Light::getPosition4() const
{
	return D3DXVECTOR4(
		position.x,
		position.y,
		position.z,
		0.0f);
}